package Abou.eCommerce.eCommerce.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import Abou.eCommerce.eCommerce.dao.CustomerDAO;
import Abou.eCommerce.eCommerce.entities.Customer;

public class CustomerDAOImpl extends HibernateDaoSupport 
implements CustomerDAO{

//add the customer
public void addCustomer(Customer customer){
	getHibernateTemplate().save(customer);
}

//return all the customers in list
public List<Customer> listCustomer(){
	return getHibernateTemplate().find("from Customer");		
}

}